<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    asyncTest(done => {
        const image = document.createElement("img");
        image.onload = () => {
            println(`loaded, width=${image.width}, height=${image.height}`);
            done();
        };
        image.onerror = () => {
            println("error :^(");
            done();
        };

        image.src = "";
    });
</script>
